import request from '@/utils/http'
// 获取订单列表
export const getCheckoutInfoApi = () => {
  return request.get('/member/order/pre')
}
// 提交订单
export const addOrderApi = (data) => {
  return request({
    url:'/member/order',
    method:'post',
    data
  })
}
// 获取订单详情
export const getOrderDetailApi = (id) =>{
  return request.get(`/member/order/${id}`)
}
